#include "EPSG/CameraManager.h"

#include "EPSG/Camera.h"

std::vector<EPSG::Camera*>	EPSG::CameraManager::s_cameras;
EPSG::Camera* EPSG::CameraManager::s_activeCamera = NULL;

void EPSG::CameraManager::push( EPSG::Camera* c )
{
	s_cameras.push_back( c );
	
	if( s_activeCamera == NULL )
		s_activeCamera = c;
}

bool EPSG::CameraManager::setupCamera()
{
	if( s_cameras.empty() )
		return false;
	
	s_activeCamera->setupCamera();
	return true;
}

void EPSG::CameraManager::setActive( EPSG::Camera* c )
{
	s_activeCamera = c;
}